package manage.vo;

import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

public class LoginEntity implements Serializable {
    //    @Length(min = 5, max = 20)
//    @Pattern(regexp = "[a-zA-Z]{5,20}", message = "{user.name.illegal}")

    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotEmpty(message = "密码不能为空")
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


}
